package my.project.feign.controller;

import my.project.feign.instance.ComputeInstance;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 哲 on 2016/11/29.
 */
@RestController
public class ComputeController {

    private static final Logger logger = Logger.getLogger(ComputeController.class);

    @Autowired
    private ComputeInstance instance;

    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public Integer add(){
        return instance.add(10,30);
    }

}
